package com.itljm.cxrMarket.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

import lombok.Data;

/**
 * 订单项表
 * @TableName order_items
 */
@TableName(value ="order_items")
@Data
public class OrderItems implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer orderItemId;
    private Integer orderId;
    private Integer productId;
    private Integer quantity;
    private BigDecimal price;

    // 商品信息（扁平化字段）
    @TableField(exist = false)
    private String productName;
    @TableField(exist = false)
    private String imageUrls;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}